/**
 * IPC通道名称定义模块
 * 集中管理所有IPC通道名称，避免字符串硬编码
 */

/**
 * 系统信息相关通道
 */
const SystemInfoChannels = {
    GET_SYSTEM_INFO: 'get-system-info',
    SYSTEM_INFO_REPLY: 'system-info-reply'
};

/**
 * 应用启动相关通道
 */
const LaunchChannels = {
    SET_AUTO_START: 'set-auto-start',
    SET_AUTO_CONNECT: 'set-auto-connect',
    CONFIG_LOAED:'config-loaded',
    GET_LAUNCHER_APPS: 'get-launcher-apps',
    LAUNCH_APP: 'launch-app',
    SELECT_APP:'select-app',
    GET_NETWORK_STATUS: 'get-network-status',
    CHECK_CONFIG:'check-config',
    CHECK_CONFIG_RESULT:'check-config-result',
    TRIGGER_CONNECT:'trigger-connect',
};

/**
 * 文件操作相关通道
 */
const FileChannels = {
    OPEN_EXTERNAL_LINK: 'open-external-link',
    OPEN_FOLDER: 'open-folder',
    SELECT_FOLDER: 'select-folder'
};

/**
 * 网络相关通道
 */
const NetworkChannels = {
    TEST_NETWORK_SPEED: 'test-network-speed'
};

/**
 * 时间管理相关通道
 */
const TimeManagementChannels = {
    // 关机相关
    IMMEDIATE_SHUTDOWN: 'immediate-shutdown',//立即关机
    RESTART_COMPUTER: 'restart-computer',//重启电脑
    SLEEP_COMPUTER: 'sleep-computer',//睡眠电脑
    SCHEDULE_SHUTDOWN: 'schedule-shutdown',//定时关机
    COUNTDOWN_SHUTDOWN: 'countdown-shutdown',//倒计时关机
    CANCEL_SHUTDOWN: 'cancel-shutdown',//取消关机
    SHUTDOWN_RESULT: 'shutdown-result'//关机结果
};
/**
 * 其他相关通道
 * 开机自启动，自动连接网络
 */
const OtherChannels = {
    // SAVE_SETTINGS:'save-settings',
    // RESET_SETINGS:'reset-settings',
    // SET_AUTO_START:'set-auto-start',//开机自启动
    // SET_AUTO_CONNECT:'set-auto-connect',//自动连接网络
    // /**
    //  * 自动连接网络connect-network
    //  */
    CONNECT_NETWORK:'connect-network'
    // AUTO_START:'auto-start'
}
// 导出所有通道
module.exports = {
    SystemInfoChannels,
    LaunchChannels,
    FileChannels,
    NetworkChannels,
    TimeManagementChannels,
    OtherChannels
};